#解析url的组成部分进行分类
# urlparse和urlsplit的区别为调用函数返回的对象再，urlsplit没有params这个属性

url='https://doc.bookan.com.cn/#/home/project/inside/api/detail?apiID=5767&groupID=489'

from urllib import parse

obj1= parse.urlparse(url)

print(obj1)
#ParseResult(scheme='https', netloc='doc.bookan.com.cn', path='/', params='', query='', fragment='/home/project/inside/api/detail?apiID=5767&groupID=489')

obj2= parse.urlsplit(url)
print(obj2)
